package com.quark.web.ui.base;

import com.quark.framework.utility.QuarkUtilStringTools;


public class QuarkUiInputElement extends QuarkUiElementBase {

	private String inputValue = "";
	public QuarkUiInputElement(String name, String id, String cssClass, String style)
	{
		super("INPUT", id, name, cssClass, style, true);
		addAttribute("type", "text");
		addAttribute("onclick", "Environment.triggerEvent(this, 'click');");
		addAttribute("onchange", "Environment.triggerEvent(this, 'change');");
		super.triggerFuncs.add("Environment.triggerEvent(callObj, 'load');");
	}
	
	public void setValue(String value)
	{
		addAttribute("value", value);
	}

	public void clearValue()
	{
		addAttribute("value", "");
	}
	
}
